package com.spring.boot.event;

import org.springframework.context.ApplicationEvent;

/**
 * @author: zihong.zheng
 * @date: 2021/5/27 9:42 下午
 */
public class TestEvent extends ApplicationEvent {


    private String message;

    /**
     * Create a new ApplicationEvent.
     *
     * @param source the object on which the event initially occurred (never {@code null})
     */
    public TestEvent(Object source, String message) {
        super(source);
        this.message = message;
    }

    public String getMessage() {
        return message;
    }

}
